﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OntologyUtility.Xml
{
    public class OntologiesNodes
    {
        [XmlNodeTypeAttribute(System.Xml.XmlNodeType.Element)]
        public List<Node> Nodes { get; set; }

        public OntologiesNodes(List<Node> node)
        {
            this.Nodes = node;
        }

        public OntologiesNodes()
        {
            Nodes = new List<Node>();
        }

        public override string ToString()
        {
            String sReturn = "";
            int index = 1;
            foreach (Node node in Nodes)
            {
                sReturn += "Node " + (index ++) + ": " + node.ToString() + "\n";
            }

            return sReturn;
        }
    }
}
